package cn.com.ctcloud.saas.ids.demo.webtier;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Title: ChinaCT IDS
 * <p>
 * Description: Demo 第一个springboot应用
 * <p>
 * Copyright: Copyright (c) 2008
 * <p>
 * Company: Liaoning Open Data Communication Co.,Ltd.
 *
 * @author lihui
 * @version 2.0.0
 */
@CrossOrigin // 使用CORS技术解决跨域问题
//@RestController = @Controller + @ResponseBody 默认直接返回json
@RestController
public class DemoController {

	/**
	 * 访问地址：http://localhost:9090/demo
	 */
	@RequestMapping(value = "/demo", method = RequestMethod.GET)
	public String demo() {
		return "hello,SpringBoot!";
	}
}